import api from '@/api/index'
import { debtServer } from '@/utils/apiConfig'
// 查询报表
export const getTableDataDetail = <T>(id: string, data: unknown) => {
  return api.get<T>(debtServer + '/reports/' + id, data)
}
// 导出报表
export const exportTableData = <T>(id: string, data: unknown) => {
  return api.post<T>(debtServer + '/reports/export/' + id, data, {}, true)
}
// 导出固化报表
export const exportRepayTableData = <T>(data: unknown) => {
  return api.post<T>(debtServer + '/reports/solidifyReport/export', data, {}, true)
}
// 时间查询
export const DateQuery = <T>(id: string, data: unknown) => {
  return api.get<T>(debtServer + '/reports/' + id, data)
}
